home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Utilities / DVIM72-Mac 1.9.6 / source / mac-specific.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-14  |  1.5 KB  |  49 lines  |  [TEXT/R*ch]

  1. #include <PrintTraps.h>
  2.  
  3. #define    MAX_ARGS 20
  4. #undef stderr
  5. #define stderr stdout
  6.  
  7. /* ------------- prototypes of global routines ------------- */
  8. void    Kill_dvi( char *msg );
  9. void    Print_page(        void );
  10. void    Close_printer(    void );
  11. void    Show_error(     char *msg );
  12. char    **get_str_resource(
  13.                         char *rsrc_name );
  14. Boolean User_wants_out( void );
  15. pascal void    Printer_idle( void );
  16. void    Get_resource(                /* find a resource by name */
  17.                         OSType resource_type,
  18.                         char *resource_name,
  19.                         Handle *resource_handle,
  20.                         short *resource_id);
  21. int        Get_resource_id(
  22.                         OSType rsrc_type,
  23.                         char *rsrc_name);
  24. void    Set_pic_procs( void );
  25. Point    Get_SF_place( short rsrc_id );
  26.  
  27. /* ------------------------ Stack_space ----------------- */
  28. #pragma parameter __D0   Stack_space
  29. long    Stack_space( void ) = { 0x200F, 0x90B8, 0x0130 };
  30. //    move.L    SP, D0
  31. //    SUB.L    ApplLimit, D0
  32.  
  33. /* -------------- global variables ------------------ */
  34. extern Boolean        g_abort_dvi;
  35. extern int            g_dpi;    /* bitmap resolution */
  36. extern int            g_printer_dpi;    /* device resolution */
  37. extern GrafPort        g_offscreen_GrafPort;
  38. extern Boolean        g_draw_offscreen;
  39. extern Boolean        g_preview;
  40. extern short         g_pref_resfile;    /* reference number of preferences file */
  41. extern short        g_app_resfile; /* refnum of application */
  42. extern THPrint        g_print_rec_h;
  43. extern DialogPtr    g_cancel_dialog;
  44. extern short        g_pref_vRefNum;    /* vRefNum of preferences file */
  45. extern WindowPtr    g_page_window;
  46. extern TPPrPort        g_print_port_p;
  47. extern short        g_paper_width;
  48. extern short        g_paper_length;
  49. extern short        g_print_status;